package com.t8;

/**
 * Created by xuyiwei on 2018/7/19.
 */

public class PrivateOverride {
    private static void f(){
        System.out.println("private f()");
    }

    public static void main(String[] args) {
        PrivateOverride p = new Derived();
        p.f();
        //private f()
    }
}

class Derived extends  PrivateOverride{
    public void f(){
        System.out.println("public f()");
    }
}
